package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface NursingPlanMapper {


    /**
     * 查询所有护理计划
     *
     * @return
     */
    List<NursingPlanVo> listAll();

    /**
     * 新增护理计划
     *
     * @param nursingPlan
     */
    void add(NursingPlan nursingPlan);

    /**
     * 分页查询护理计划
     *
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlan> PageNursing(@Param("name") String name, @Param("status") Integer status);

    /**
     * 根据id查询护理计划
     *
     * @param id
     * @return
     */
    NursingPlanVo getNursing(Long id);

    /**
     * 修改护理计划
     * @param nursingPlan
     */
    void update(NursingPlan nursingPlan);

    /**
     * nursingPlanMapper
     * @param id
     */
    void delete(Long id);

    /**
     * 修改护理计划状态
     * @param id
     * @param status
     */
    void modifyState(Long id, Integer status);
}
